package org.zcl.内部类;

/**
 * @Package org.zcl.内部类
 * @PROJECT_NAME: question
 * @DESCRIPTION:
 * @USER: zhuchenglin
 * @DATE: 2022/1/6 15:46
 */
public class PartInnerClass {

    int number = 10;

    public class Inner {
        int number = 20;

        public  void methodInner() {
            int number =30;//内部类方法的局部变量
            System.out.println(number);//就近原则
            System.out.println(this.number);
            System.out.println(PartInnerClass.this.number);//外部类的成员变量
        }
    }

}
